rd
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 6228)]
[New Thread 0x7fffe37ab700 (LWP 6229)]
[New Thread 0x7fffe1905700 (LWP 6230)]
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 125 ms (max. 8 fps / 16 %)
THIS SHOULD ONLY HAPPEN WITH PRE-1.2 LEVEL TAPES. [85]
THIS SHOULD ONLY HAPPEN WITH PRE-1.2 LEVEL TAPES. [73]
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
corrupted double-linked list

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n")
    at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a02393 "corrupted double-linked list") at malloc.c:5341
#4  0x00007ffff78ffe64 in malloc_consolidate (av=av@entry=0x7ffff7a3bc40 <main_arena>) at malloc.c:4488
#5  0x00007ffff7902a58 in _int_malloc (av=av@entry=0x7ffff7a3bc40 <main_arena>, bytes=bytes@entry=4096) at malloc.c:3695
#6  0x00007ffff790456a in __GI___libc_malloc (bytes=4096) at malloc.c:3057
#7  0x00007ffff78ef71c in __GI__IO_file_doallocate (fp=0x555559a596b0) at filedoalloc.c:101
#8  0x00007ffff78fd700 in __GI__IO_doallocbuf (fp=fp@entry=0x555559a596b0) at libioP.h:839
#9  0x00007ffff78fc744 in _IO_new_file_underflow (fp=0x555559a596b0) at fileops.c:493
#10 0x00007ffff78fd7b2 in __GI__IO_default_uflow (fp=0x555559a596b0) at libioP.h:839
#11 0x00007ffff78f0f4a in __GI__IO_getline_info (fp=fp@entry=0x555559a596b0, buf=buf@entry=0x7fffffffd310 "", n=1023, 
    delim=delim@entry=10, extract_delim=extract_delim@entry=1, eof=eof@entry=0x0) at iogetline.c:60
#12 0x00007ffff78f1038 in __GI__IO_getline (fp=fp@entry=0x555559a596b0, buf=buf@entry=0x7fffffffd310 "", n=<optimized out>, 
    delim=delim@entry=10, extract_delim=extract_delim@entry=1) at iogetline.c:34
#13 0x00007ffff78effeb in _IO_fgets (buf=0x7fffffffd310 "", n=<optimized out>, fp=0x555559a596b0) at iofgets.c:53
#14 0x00005555557152bf in getStringFromFile (file=0x55555c962950, line=0x7fffffffd310 "", size=1024) at misc.c:2296
#15 0x000055555570b5e6 in loadSetupFileData (setup_file_data=0x55555c127860, 
    filename=0x55555c1cef80 "/home/bryan/.rocksndiamonds/graphics/1920x1080_by_rjkole/graphicsinfo.conf", top_recursion_level=1, 
    is_hash=1) at setup.c:2109
#16 0x000055555570bb05 in loadSetupFileHash (
    filename=0x55555c1cef80 "/home/bryan/.rocksndiamonds/graphics/1920x1080_by_rjkole/graphicsinfo.conf") at setup.c:2277
#17 0x00005555556458a4 in CheckArtworkConfigForCustomElements (
    filename=0x55555c1cef80 "/home/bryan/.rocksndiamonds/graphics/1920x1080_by_rjkole/graphicsinfo.conf") at init.c:5732
#18 0x00005555556459d7 in CheckArtworkTypeForRedefinedCustomElements (type=0) at init.c:5789
#19 0x0000555555645a38 in InitOverrideArtwork () at init.c:5812
#20 0x0000555555645d9e in ReloadCustomArtwork (force_reload=0) at init.c:5925
#21 0x00005555556628b0 in DrawMainMenu () at screens.c:1596
#22 0x00005555556b31ab in RequestQuitGameExt (skip_request=1, quick_quit=1, 
    message=0x5555557c9d60 "Do you really want to quit the game?") at game.c:15028
#23 0x00005555556b3252 in RequestQuitGame (ask_if_really_quit=0) at game.c:15048
#24 0x000055555564ab24 in HandleKey (key=27, key_status=1) at events.c:2376
#25 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd990) at events.c:1462
#26 0x0000555555646b84 in HandleEvents () at events.c:249
#27 0x0000555555646d67 in EventLoop () at events.c:348
#28 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdae8) at main.c:7762
(gdb) # was going to restart level
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 8595)]
[New Thread 0x7fffe37ab700 (LWP 8596)]
[New Thread 0x7fffe1906700 (LWP 8597)]
double free or corruption (!prev)

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a06018 "double free or corruption (!prev)") at malloc.c:5341
#4  0x00007ffff790173c in _int_free (av=0x7ffff7a3bc40 <main_arena>, p=0x55555fec4380, have_lock=<optimized out>) at malloc.c:4309
#5  0x0000555555713b28 in checked_free (ptr=0x55555fec4390) at misc.c:1275
#6  0x00005555556b599a in ReinitializeElementList () at editor.c:5720
#7  0x00005555556bd551 in CreateLevelEditorGadgets () at editor.c:7159
#8  0x000055555563a4d9 in InitGadgets () at init.c:169
#9  0x000055555565f55d in ChangeViewportPropertiesIfNeeded () at tools.c:9723
#10 0x0000555555683d2f in InitGame () at game.c:3376
#11 0x00005555556a7c92 in StartGameActions (init_network_game=0, record_tape=1, random_seed=0) at game.c:11332
#12 0x00005555556648c0 in HandleMainMenu (mx=0, my=0, dx=0, dy=0, button=0) at screens.c:2134
#13 0x000055555564a6a5 in HandleKey (key=13, key_status=1) at events.c:2304
#14 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd990) at events.c:1462
#15 0x0000555555646b84 in HandleEvents () at events.c:249
#16 0x0000555555646d67 in EventLoop () at events.c:348
#17 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdae8) at main.c:7762
(gdb) # was going to restart, now at main menu
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 10010)]
[New Thread 0x7fffe37ab700 (LWP 10011)]
[New Thread 0x7fffe1905700 (LWP 10012)]
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented
rocksndiamonds: frame delay == 125 ms (max. 8 fps / 16 %)
free(): double free detected in tcache 2

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a05f58 "free(): double free detected in tcache 2") at malloc.c:5341
#4  0x00007ffff79016fd in _int_free (av=0x7ffff7a3bc40 <main_arena>, p=0x55555b369dc0, have_lock=<optimized out>) at malloc.c:4193
#5  0x00007fffe1e5dc8d in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#6  0x00007fffe1e60189 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#7  0x00007fffe1e3039e in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#8  0x00007fffe1e338c1 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#9  0x00007fffe1e33b45 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#10 0x00007fffe1e2ecb1 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#11 0x00007ffff7e312e9 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#12 0x00005555557187c9 in UpdateScreenExt (rect=0x7fffffffd420, with_frame_delay=1) at sdl.c:192
#13 0x00005555557188dd in UpdateScreen_WithFrameDelay (rect=0x7fffffffd420) at sdl.c:236
#14 0x0000555555719a75 in SDLCopyArea (src_bitmap=0x555559af3150, dst_bitmap=0x555559af3710, src_x=0, src_y=0, width=1920, height=40, dst_x=0, dst_y=0, mask_mode=0) at sdl.c:912
#15 0x00005555556f67d6 in sysCopyArea (src_bitmap=0x555559af3150, dst_bitmap=0x555559af3710, src_x=0, src_y=0, width=1920, height=40, dst_x=0, dst_y=0, mask_mode=0) at system.c:525
#16 0x00005555556f74ac in BlitBitmap (src_bitmap=0x555559af3150, dst_bitmap=0x555559af3710, src_x=0, src_y=0, width=1920, height=40, dst_x=0, dst_y=0) at system.c:868
#17 0x000055555564cd9e in BackToFront () at tools.c:886
#18 0x000055555565996f in MoveDoor (door_state=1) at tools.c:5460
#19 0x000055555565892e in OpenDoor (door_state=3) at tools.c:5081
#20 0x0000555555686299 in InitGame () at game.c:4227
#21 0x00005555556a7c92 in StartGameActions (init_network_game=0, record_tape=1, random_seed=0) at game.c:11332
#22 0x000055555564a483 in HandleKey (key=32, key_status=1) at events.c:2233
#23 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd990) at events.c:1462
#24 0x0000555555646b84 in HandleEvents () at events.c:249
#25 0x0000555555646d67 in EventLoop () at events.c:348
#26 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdae8) at main.c:7762
(gdb) # had just restarted a level, at start
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 10641)]
[New Thread 0x7fffe37ab700 (LWP 10642)]
[New Thread 0x7fffe1905700 (LWP 10643)]
free(): double free detected in tcache 2

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a05f58 "free(): double free detected in tcache 2") at malloc.c:5341
#4  0x00007ffff79016fd in _int_free (av=0x7ffff7a3bc40 <main_arena>, p=0x55555f80c4b0, have_lock=<optimized out>) at malloc.c:4193
#5  0x0000555555713b28 in checked_free (ptr=0x55555f80c4c0) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c781ce0 "rnd_kimball_robinson") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x00005555556ecbff in TapeStartRecording (random_seed=1593423374) at tape.c:584
#9  0x00005555556a7c7b in StartGameActions (init_network_game=0, record_tape=1, random_seed=0) at game.c:11322
#10 0x00005555556648c0 in HandleMainMenu (mx=0, my=0, dx=0, dy=0, button=0) at screens.c:2134
#11 0x000055555564a6a5 in HandleKey (key=13, key_status=1) at events.c:2304
#12 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd990) at events.c:1462
#13 0x0000555555646b84 in HandleEvents () at events.c:249
#14 0x0000555555646d67 in EventLoop () at events.c:348
#15 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdae8) at main.c:7762
(gdb) # back at main screen
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 10945)]
[New Thread 0x7fffe37ab700 (LWP 10946)]
[New Thread 0x7fffe1905700 (LWP 10949)]
rocksndiamonds: frame delay == 125 ms (max. 8 fps / 16 %)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
THIS SHOULD ONLY HAPPEN WITH PRE-1.2 LEVEL TAPES. [9]
THIS SHOULD ONLY HAPPEN WITH PRE-1.2 LEVEL TAPES. [11]
rocksndiamonds: frame delay == 125 ms (max. 8 fps / 16 %)
rocksndiamonds: frame delay == 30 ms (max. 33 fps / 66 %)
THIS SHOULD ONLY HAPPEN WITH PRE-1.2 LEVEL TAPES. [15]
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
THIS SHOULD ONLY HAPPEN WITH PRE-1.2 LEVEL TAPES. [12]
rocksndiamonds: frame delay == 125 ms (max. 8 fps / 16 %)
THIS SHOULD ONLY HAPPEN WITH PRE-1.2 LEVEL TAPES. [9]
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: frame delay == 10 ms (max. 100 fps / 200 %)
[Thread 0x7fffe37ab700 (LWP 10946) exited]
[Thread 0x7fffe37ec700 (LWP 10945) exited]
[Thread 0x7fffe1905700 (LWP 10949) exited]
[Inferior 1 (process 10944) exited normally]
(gdb) q
